﻿using System;

namespace Average
{
    class Program
    {
        static void Main(string[] args)
        {
            double[] arr = new double[10];
            double count = 0;
            for (int i = 0; i < arr.Length; i++)
            {
                arr[i] = i + 1;
                Console.WriteLine(arr[i]);
                count += arr[i];
            }
            Console.WriteLine("平均数=" + count / arr.Length);




        }
   
        
    }
}
